using System;
using System.ComponentModel;


namespace FinlogiK.FxCop.Statistics.XsltTransformation
{
	internal static class TransformerFactory
	{
		#region Methods

		internal static BaseTransformer CreateTransformer(TransformationType transformationType)
		{
			BaseTransformer retVal = null;

			switch (transformationType)
			{
				case TransformationType.Summary:
					retVal = new SummaryTransformer();
					break;
				default:
					throw new InvalidEnumArgumentException("transformationType", (int)transformationType, typeof(TransformationType));
			}

			return retVal;
		}

		#endregion
	}
}